﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using CommandMgr.Entities;

namespace CommandMgr.Repository
{
    public class CommandContext : DbContext
    {
        public DbSet<Command> Commands { get; set; }
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<Command>().Property(c => c.StatusCode).HasColumnName("Status");
        }

    }
}
